.class final Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;
.super Ljava/lang/Object;
.source "MarketshowActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/MarketshowActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x12
    name = "Waimairenjsobj"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MarketshowActivity;


# direct methods
.method private constructor <init>(Lcom/example/m6wmr/MarketshowActivity;)V
    .locals 0

    .prologue
    .line 222
    iput-object p1, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/m6wmr/MarketshowActivity;Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;)V
    .locals 0

    .prologue
    .line 222
    invoke-direct {p0, p1}, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    return-void
.end method


# virtual methods
.method public addcart(Ljava/lang/String;)V
    .locals 14
    .param p1, "gid"    # Ljava/lang/String;
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 244
    const-string v9, "ShopshowACtivity"

    const-string v10, "\u8c03\u7528js\u6570\u636e:addcart"

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 246
    new-instance v7, Lbean/GoodsBean;

    invoke-direct {v7}, Lbean/GoodsBean;-><init>()V

    .line 247
    .local v7, "mygoods":Lbean/GoodsBean;
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9}, Ljava/util/List;->size()I

    move-result v9

    const/4 v10, 0x1

    if-ge v9, v10, :cond_0

    .line 248
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$1(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/Context;

    move-result-object v9

    const-string v10, "\u6dfb\u52a0\u8d2d\u7269\u8f66\u5931\u8d25"

    const-string v11, "\u5546\u54c1\u4e0d\u5b58\u5728"

    invoke-static {v9, v10, v11}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 303
    :goto_0
    return-void

    .line 252
    :cond_0
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v10, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;
    invoke-static {v10}, Lcom/example/m6wmr/MarketshowActivity;->access$2(Lcom/example/m6wmr/MarketshowActivity;)Ldbclass/DBOpenHelper;

    move-result-object v10

    invoke-virtual {v10}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v10

    .line 253
    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "select * from cart where goodsid="

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x0

    .line 252
    invoke-virtual {v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6wmr/MarketshowActivity;->access$3(Lcom/example/m6wmr/MarketshowActivity;Landroid/database/Cursor;)V

    .line 254
    const/4 v4, 0x0

    .line 255
    .local v4, "goodscount":I
    const/4 v2, 0x1

    .line 256
    .local v2, "checkgd":Z
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    if-eqz v9, :cond_2

    .line 257
    :goto_1
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    invoke-interface {v9}, Landroid/database/Cursor;->moveToNext()Z

    move-result v9

    if-nez v9, :cond_1

    .line 266
    :goto_2
    const/4 v1, 0x1

    .line 267
    .local v1, "checkcart":Z
    add-int/lit8 v8, v4, 0x1

    .line 268
    .local v8, "newgoodcount":I
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_3
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9}, Ljava/util/List;->size()I

    move-result v9

    if-lt v5, v9, :cond_3

    .line 280
    if-eqz v1, :cond_6

    .line 281
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$1(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/Context;

    move-result-object v9

    const-string v10, "\u6dfb\u52a0\u8d2d\u7269\u8f66\u5931\u8d25"

    const-string v11, "\u5546\u54c1\u5e93\u5b58\u4e0d\u8db3"

    invoke-static {v9, v10, v11}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 258
    .end local v1    # "checkcart":Z
    .end local v5    # "i":I
    .end local v8    # "newgoodcount":I
    :cond_1
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v10}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v10

    const-string v11, "goodscount"

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v10

    invoke-interface {v9, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v4

    .line 259
    const/4 v2, 0x0

    goto :goto_1

    .line 264
    :cond_2
    const/4 v2, 0x1

    goto :goto_2

    .line 270
    .restart local v1    # "checkcart":Z
    .restart local v5    # "i":I
    .restart local v8    # "newgoodcount":I
    :cond_3
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/GoodsBean;

    .line 271
    .local v3, "gb":Lbean/GoodsBean;
    invoke-virtual {v3}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_5

    .line 272
    const/4 v1, 0x0

    .line 273
    invoke-virtual {v3}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 274
    .local v0, "check1":I
    if-ge v0, v8, :cond_4

    .line 275
    const/4 v1, 0x1

    .line 277
    :cond_4
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    .end local v7    # "mygoods":Lbean/GoodsBean;
    check-cast v7, Lbean/GoodsBean;

    .line 268
    .end local v0    # "check1":I
    .restart local v7    # "mygoods":Lbean/GoodsBean;
    :cond_5
    add-int/lit8 v5, v5, 0x1

    goto :goto_3

    .line 284
    .end local v3    # "gb":Lbean/GoodsBean;
    :cond_6
    if-eqz v2, :cond_7

    .line 287
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$5(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    .line 288
    const-string v10, "insert into cart (shopid,goodsid,goodsname,goodscount,goodscost) values(?,?,?,?,?)"

    .line 289
    const/4 v11, 0x5

    new-array v11, v11, [Ljava/lang/Object;

    const/4 v12, 0x0

    iget-object v13, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/MarketshowActivity;->access$6(Lcom/example/m6wmr/MarketshowActivity;)Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x1

    aput-object p1, v11, v12

    const/4 v12, 0x2

    invoke-virtual {v7}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x3

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v13

    aput-object v13, v11, v12

    const/4 v12, 0x4

    invoke-virtual {v7}, Lbean/GoodsBean;->getcost()F

    move-result v13

    invoke-static {v13}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v13

    aput-object v13, v11, v12

    .line 287
    invoke-virtual {v9, v10, v11}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 297
    :goto_4
    new-instance v6, Landroid/os/Message;

    invoke-direct {v6}, Landroid/os/Message;-><init>()V

    .line 299
    .local v6, "msg":Landroid/os/Message;
    iput-object p1, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 300
    const/16 v9, 0x13

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 301
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v9, v9, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 293
    .end local v6    # "msg":Landroid/os/Message;
    :cond_7
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$7(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/ContentValues;

    move-result-object v9

    const-string v10, "goodscount"

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-virtual {v9, v10, v11}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 294
    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$5(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    const-string v10, "cart"

    iget-object v11, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v11}, Lcom/example/m6wmr/MarketshowActivity;->access$7(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/ContentValues;

    move-result-object v11

    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "goodsid = \'"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "\'"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    const/4 v13, 0x0

    invoke-virtual {v9, v10, v11, v12, v13}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_4
.end method

.method public call(Ljava/lang/String;)V
    .locals 2
    .param p1, "phone"    # Ljava/lang/String;
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 226
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    const/4 v1, 0x1

    invoke-static {v0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 227
    const-string v0, "ShopshowACtivity"

    const-string v1, "\u8c03\u7528js\u6570\u636e:call"

    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 228
    return-void
.end method

.method public delonecart(Ljava/lang/String;)V
    .locals 11
    .param p1, "gid"    # Ljava/lang/String;
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    const/4 v10, 0x0

    .line 307
    const-string v5, "ShopshowACtivity"

    const-string v6, "\u8c03\u7528js\u6570\u636e:delonecart"

    invoke-static {v5, v6}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 309
    new-instance v3, Lbean/GoodsBean;

    invoke-direct {v3}, Lbean/GoodsBean;-><init>()V

    .line 310
    .local v3, "mygoods":Lbean/GoodsBean;
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    const/4 v6, 0x1

    if-ge v5, v6, :cond_0

    .line 311
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$1(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/Context;

    move-result-object v5

    const-string v6, "\u66f4\u65b0\u8d2d\u7269\u8f66"

    const-string v7, "\u5546\u54c1\u4e0d\u5b58\u5728"

    invoke-static {v5, v6, v7}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 353
    :goto_0
    return-void

    .line 315
    :cond_0
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v6, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;
    invoke-static {v6}, Lcom/example/m6wmr/MarketshowActivity;->access$2(Lcom/example/m6wmr/MarketshowActivity;)Ldbclass/DBOpenHelper;

    move-result-object v6

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    .line 316
    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "select * from cart where goodsid="

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 315
    invoke-virtual {v6, v7, v10}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/example/m6wmr/MarketshowActivity;->access$3(Lcom/example/m6wmr/MarketshowActivity;Landroid/database/Cursor;)V

    .line 317
    const/4 v1, 0x0

    .line 318
    .local v1, "goodscount":I
    const/4 v0, 0x1

    .line 319
    .local v0, "checkgd":Z
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v5

    if-eqz v5, :cond_3

    .line 320
    :goto_1
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v5

    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z

    move-result v5

    if-nez v5, :cond_2

    .line 328
    :goto_2
    if-eqz v0, :cond_1

    .line 329
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$1(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/Context;

    move-result-object v5

    const-string v6, "\u66f4\u65b0\u8d2d\u7269\u8f66"

    const-string v7, "\u8d2d\u7269\u8f66\u5546\u54c1\u4e0d\u5b58\u5728"

    invoke-static {v5, v6, v7}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 330
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 331
    .local v2, "msg":Landroid/os/Message;
    iput-object p1, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 332
    const/16 v5, 0x15

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 333
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v5, v5, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 335
    .end local v2    # "msg":Landroid/os/Message;
    :cond_1
    add-int/lit8 v4, v1, -0x1

    .line 336
    .local v4, "newgoodcount":I
    if-nez v4, :cond_4

    .line 338
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$5(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "cart"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "goodsid = \'"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "\'"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v6, v7, v10}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 339
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 340
    .restart local v2    # "msg":Landroid/os/Message;
    iput-object p1, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 341
    const/16 v5, 0x16

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 342
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v5, v5, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 321
    .end local v2    # "msg":Landroid/os/Message;
    .end local v4    # "newgoodcount":I
    :cond_2
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v6}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v6

    const-string v7, "goodscount"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 322
    const/4 v0, 0x0

    goto/16 :goto_1

    .line 326
    :cond_3
    const/4 v0, 0x1

    goto :goto_2

    .line 345
    .restart local v4    # "newgoodcount":I
    :cond_4
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$7(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/ContentValues;

    move-result-object v5

    const-string v6, "goodscount"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v5, v6, v7}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 346
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v5}, Lcom/example/m6wmr/MarketshowActivity;->access$5(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "cart"

    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$7(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/ContentValues;

    move-result-object v7

    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "goodsid = \'"

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "\'"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v5, v6, v7, v8, v10}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 347
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 348
    .restart local v2    # "msg":Landroid/os/Message;
    iput-object p1, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 349
    const/16 v5, 0x14

    iput v5, v2, Landroid/os/Message;->arg1:I

    .line 350
    iget-object v5, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v5, v5, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v5, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0
.end method

.method public freshcart()V
    .locals 11
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 362
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 363
    .local v0, "cartls":Ljava/util/List;, "Ljava/util/List<Lbean/CartBean;>;"
    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V

    .line 364
    .local v2, "jsonArray":Lorg/json/JSONArray;
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5}, Lorg/json/JSONObject;-><init>()V

    .line 366
    .local v5, "object":Lorg/json/JSONObject;
    :try_start_0
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$2(Lcom/example/m6wmr/MarketshowActivity;)Ldbclass/DBOpenHelper;

    move-result-object v8

    invoke-virtual {v8}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v8

    .line 367
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "select * from cart where shopid="

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v10, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/MarketshowActivity;->access$6(Lcom/example/m6wmr/MarketshowActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    const/4 v10, 0x0

    .line 366
    invoke-virtual {v8, v9, v10}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/example/m6wmr/MarketshowActivity;->access$3(Lcom/example/m6wmr/MarketshowActivity;Landroid/database/Cursor;)V

    .line 368
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    if-eqz v7, :cond_0

    .line 369
    :goto_0
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    invoke-interface {v7}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v7

    if-nez v7, :cond_2

    .line 386
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    if-eqz v7, :cond_1

    .line 387
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    invoke-interface {v7}, Landroid/database/Cursor;->close()V

    .line 390
    :cond_1
    :goto_1
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 391
    .local v3, "msg":Landroid/os/Message;
    invoke-virtual {v2}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v4

    .line 392
    .local v4, "myString":Ljava/lang/String;
    iput-object v4, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 393
    const/16 v7, 0x12

    iput v7, v3, Landroid/os/Message;->arg1:I

    .line 394
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v7, v7, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v7, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 395
    return-void

    .line 372
    .end local v3    # "msg":Landroid/os/Message;
    .end local v4    # "myString":Ljava/lang/String;
    :cond_2
    :try_start_1
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6}, Lorg/json/JSONObject;-><init>()V

    .line 374
    .local v6, "object2":Lorg/json/JSONObject;
    const-string v7, "goodsid"

    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    const-string v10, "goodsid"

    invoke-interface {v9, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v9

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 375
    const-string v7, "goodsname"

    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    const-string v10, "goodsname"

    invoke-interface {v9, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v9

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 376
    const-string v7, "goodscount"

    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    const-string v10, "goodscount"

    invoke-interface {v9, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v9

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 377
    const-string v7, "goodscost"

    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v9}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v9

    const-string v10, "goodscost"

    invoke-interface {v9, v10}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v9

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 378
    invoke-virtual {v2, v6}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_0

    .line 381
    .end local v6    # "object2":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 382
    .local v1, "e":Lorg/json/JSONException;
    :try_start_2
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 386
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    if-eqz v7, :cond_1

    .line 387
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    invoke-interface {v7}, Landroid/database/Cursor;->close()V

    goto/16 :goto_1

    .line 383
    .end local v1    # "e":Lorg/json/JSONException;
    :catch_1
    move-exception v1

    .line 384
    .local v1, "e":Ljava/lang/Exception;
    :try_start_3
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 386
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    if-eqz v7, :cond_1

    .line 387
    iget-object v7, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v7}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v7

    invoke-interface {v7}, Landroid/database/Cursor;->close()V

    goto/16 :goto_1

    .line 385
    .end local v1    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v7

    .line 386
    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    if-eqz v8, :cond_3

    .line 387
    iget-object v8, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    # getter for: Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v8}, Lcom/example/m6wmr/MarketshowActivity;->access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;

    move-result-object v8

    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    .line 389
    :cond_3
    throw v7
.end method

.method public getgoodsinfo()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 238
    const-string v0, "ShopshowACtivity"

    const-string v1, "\u8c03\u7528js\u6570\u636e:getgoodsinfo"

    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 239
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    invoke-virtual {v0}, Lcom/example/m6wmr/MarketshowActivity;->loaddatatojs()Z

    .line 240
    return-void
.end method

.method public gotocart()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 400
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 401
    .local v0, "msg":Landroid/os/Message;
    const/16 v1, 0x19

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 402
    iget-object v1, p0, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;->this$0:Lcom/example/m6wmr/MarketshowActivity;

    iget-object v1, v1, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 403
    return-void
.end method

.method public showcontacts()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 233
    const-string v0, "ShopshowACtivity"

    const-string v1, "\u8c03\u7528js\u6570\u636e:showcontacts"

    invoke-static {v0, v1}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 234
    return-void
.end method

.method public toast(Ljava/lang/String;)V
    .locals 0
    .param p1, "str"    # Ljava/lang/String;
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 407
    return-void
.end method
